package com.haiyou.dc.ehcache.service;

import com.haiyou.common.base.BaseService;
import com.haiyou.dc.ehcache.entity.Movie;

/**
 * @author root
 * @date 2020-02-24 20:03:25
 */
public interface MovieService extends BaseService<Movie> {

    /**
     * 缓存电影数据
     * @param id
     * @return
     */
    Movie movieByCache(Integer id);

    /**
     *
     * @param movie
     */
    void addMovieCleanCache(Movie movie);
}